<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>用户授权返回</title>
<script src="${resSys}/jquery.js" type="text/javascript"></script>
[#if site.config.qqEnable]
<script type="text/javascript" src="http://qzonestyle.gtimg.cn/qzone/openapi/qc_loader.js" data-appid="${site.config.qqID!}" data-redirecturi="http://${site.domain}/public_bind.jspx" charset="utf-8"></script>
<script type="text/javascript">
QC.Login.getMe(function(openId, accessToken){
 $.cookie("openId",openId);
 $.post("${base}/public_auth_login.jspx", {
	 key:openId,
	 source:"QQ"
	}, function(data) {
		//绑定用户
		if(!data.succ){
			location="${base}/public_bind.jspx";
		}else{
			opener.location.reload();
	        window.close();
        }
	}, "json");
});
</script>
[/#if]
</head>
<body>
</body>
</html>